CPPFLAGS = -Wall -Wextra -g #-O2 #-std=c++0x
EXE = my_perf sys_perf test1 test2 test3 test4
all: $(EXE) #my_heapsort sys_heapsort my_perf sys_perf test1 test2 test3 test4

%.o : ../src/%.cpp
	g++ $(CPPFLAGS) -c $<

my_perf: perform.cpp ../include/mm.h mm.o
	g++ -DYMEM $(CPPFLAGS) perform.cpp mm.o -o my_perf

sys_perf: perform.cpp
	g++ $(CPPFLAGS) perform.cpp -o sys_perf

test1: test1.cpp ../include/mm.h mm.o
	g++ $(CPPFLAGS) test1.cpp mm.o -o test1

test2: test2.cpp ../include/mm.h mm.o
	g++ $(CPPFLAGS) test2.cpp mm.o -o test2

test3: test3.cpp ../include/mm.h mm.o
	g++ $(CPPFLAGS) test3.cpp mm.o -o test3

test4: test4.cpp ../include/mm.h mm.o
	g++ $(CPPFLAGS) test4.cpp mm.o -o test4

clean:
	rm -f *.o $(EXE)
